//
//  Cell02.m
//  LastTemp
//
//  Created by dllo on 15/4/24.
//  Copyright (c) 2015年 dllo. All rights reserved.
//

#import "Cell02.h"

@implementation Cell02
- (void)dealloc
{
    [_albumNameLabel release];
    [_timeLabel release];
    [_picImageView release];
    [super dealloc];
}
-(instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.albumNameLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.albumNameLabel];
        [_albumNameLabel release];
        
        self.timeLabel = [[UILabel alloc] init];
        [self.contentView addSubview:self.timeLabel];
        self.timeLabel.font = [UIFont systemFontOfSize:14];
        [_timeLabel release];
        
        self.picImageView = [[UIImageView alloc] init];
        [self.contentView addSubview:self.picImageView];
        [_picImageView release];
    }
    return self;
}
- (void)layoutSubviews{
    [super layoutSubviews];
    self.albumNameLabel.frame = CGRectMake(130, 15, self.contentView.frame.size.width - 130, 30);
    self.timeLabel.frame = CGRectMake(130, 55, self.contentView.frame.size.width - 130, 30);
    self.picImageView.frame = CGRectMake(5, 10, 100, 100);
    self.picImageView.layer.cornerRadius = 50;
    self.picImageView.layer.masksToBounds = YES;
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
